#include<stdio.h>
#include<math.h>
int main()
{
    int a,b;
    scanf ("%d",&a);
    scanf ("%d",&b);
    printf ("%d ",a+b);
    printf ("%d ",a-b);
    printf ("%d ",a*b);
    printf ("%d ",a/b);
    return 0;
}

